home *** CD-ROM | disk | FTP | other *** search
- Path: rkamiga1.apana.org.au!not-for-mail
- From: rudyk@rkamiga1.apana.org.au (Rudy Kohut)
- Newsgroups: comp.sys.amiga.networking
- Subject: Re: ppp0IPLocal
- Date: 10 Jan 1996 09:36:07 GMT
- Organization: Daemon Public Access Unix (03)563-8438
- Message-ID: <4d01a7$929@ramus.apana.org.au>
- References: <4cos37$c3u@tribune.usask.ca> <4cpamc$jgl@tribune.usask.ca> <kruse.53114568@america.com> <4crqlv$39d@tribune.usask.ca>
- NNTP-Posting-Host: dialup-03.apana.org.au
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Clark Nikolai (aa144@sfn.saskatoon.sk.ca) wrote:
-
- :> Well I've modified my dial script and it gives a different type of log
- :> file from PPPlog. Here is the dialscript:
- :>
- :> ECHO OFF
- :> TIMEOUT 150000 ; Set maximum wait time (in ticks)
- :> REDIAL "BUSY" ; Redial on busy signal
- :> DELAY 100
- :> SEND ""
- :> DELAY 50
- :> SEND "ATZ&D0" ; Initialize the modem
- :> DELAY 20
- :> WAIT "K" ; Wait for the OK
- :> SEND "ATDP955-1925" ; Dial
- :> DELAY 20
- :> WAIT "CT" ; Wait for connect
- :> DELAY 50
- :> SEND "" ; Send a CR-LF
- :> DELAY 20
- :> WAIT "ogin:" ; Wait for Name:
- :> SEND "myuserid" ; Send your User ID
- :> DELAY 20
- :> WAIT "assword:" ; Wait for Password:
- :> SEND "mypassword" ; Send your password
- :> WAIT "PPP Ready"
-
- >>>SNIP<<<
-
- :> Here is one of the scripts I'm trying:
- :>
- :> AmiTCP:bin/online devs:networks/ppp.device 0
- :> AmiTCP:AmiTCP
- :> WaitForPort AMITCP
- :> ; Configure loop-back device
- :> AmiTCP:bin/ifconfig lo0 localhost
- :> ; Configure ppp0
- :> AmiTCP:bin/ifconfig ppp0 $ppp0IPLocal $ppp0IPRemote
- :> ; Add route to this host
- :> AmiTCP:bin/route add $ppp0IPLocal localhost
- :> ; Add route to the default gateway
- :> AmiTCP:bin/route add default $ppp0IPRemote
- :> SetEnv HOSTNAME `AmiTCP:bin/hostname`
- :> Assign >NIL: TCP: EXISTS
- :> IF WARN
- :> Mount TCP: FROM AmiTCP:devs/inet-mountlist
- :> EndIF
- :> ; Start the internet `super server'
- :> Run <NIL: >NIL: AmiTCP:bin/inetd
- :>
- :> So what happens is I execute this script, it then dials and opens a
- :> shell, then "CONNECT" etc.
- :> The server asks for the login: and the script gives it, same with
- :> password. Everythings is fine up to then. Then the server sends out "PPP
- :> Ready" and the packets. This is where it appears something goes wrong.
- :> Is there another command that goes at the end of the dial script that
- :> tells the PPP.device to kick in? I don't know what else to think.
- :> Hope you can help.
-
- Here is my ppp dialscript for comparison:
- ECHO ON
- TIMEOUT 6000
- REDIALDELAY 1000
- ABORT "NO CARRIER","NO ANSWER","NO DIALTONE"
- REDIAL "BUSY"
- SEND "ATZ1"
- WAIT "OK"
- SEND "ATDT(servertelnumber)"
- WAIT "CONNECT"
- WAIT " login: "
- SEND "my login"
- WAIT "assword:"
- SEND "mypassword"
-
- That's it! After that, the server negotiates with PPP all the settings.
- Then the rest of the my startnet_ppp script is executed. Here it is for
- comparison (Note: I am using Amitcp4.0demo):
-
- amitcp:bin/online devs:networks/ppp.device 0
- If WARN
- Echo "Could not connect!"
- Wait 3
- skip END
- ENDIF
- AmiTCP:bin/umask 022
- AmiTCP:AmiTCP
- WaitForPort AMITCP
- ; Configure loop-back device
- AmiTCP:bin/ifconfig lo0 localhost
- AmiTCP:bin/ifconfig ppp0 $ppp0iplocal $ppp0ipremote
- ; Add route to this host
- AmiTCP:bin/route add $ppp0iplocal localhost
- ; Add route to the default gateway
- AmiTCP:bin/route add default $ppp0ipremote
- Assign TCP: Exists > NIL:
- IF Warn
- Mount TCP: from AmiTCP:devs/Inet-Mount ;<<<<Note: NOT Inet-Mountlist>>>
- EndIf
- ; Start the internet `super server'
- run AmiTCP:bin/inetd
- run c:SMTPd
- Lab END
-
- Cheers
- Rudy
- --------------------------------
- > Melbourne Victoria Australia <
- --------------------------------
- Alt. eMail [rudy.kohut@dpd.vic.gov.au]
-